package com.nvidia.example.fibonacci;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class FibonacciActivity extends Activity {


    @Override
    public void onCreate( Bundle savedInstance ) {

        super.onCreate( savedInstance );

        // Create the TextView
        TextView tv = new TextView( this );
        int fibo = Fibonacci( 10 );
        tv.setText( "Fibonacci(10) = " + fibo );
        setContentView( tv );
    }

    // Our native Fibonacci function
    native int Fibonacci ( int n );

    static {
        System.loadLibrary( "fibonacci" );
    }
}